<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<link th:href="@{/uploadeFile/css/common.css}"  rel="stylesheet"/>
<link  th:href="@{/uploadeFile/css/index.css}"   rel="stylesheet"/>
<script src="http://gosspublic.alicdn.com/aliyun-oss-sdk-4.4.4.min.js"></script>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-bankCard-edit" th:object="${bankCard}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">logo：</label>
                <div class="col-sm-8">
                    <!--<input id="logo" name="logo" th:field="*{logo}" class="form-control" type="text">-->
                    <section class=" img-section" data-limit="1" >
                        <input type="hidden" id="photo" name="logo" th:field="*{logo}"  class="getvalue" th:value="*{logo}">
                        <p class="up-p"><span class="up-span">最多可以上传1张图片</span></p>
                        <div class="z_photo upimg-div clear" >
                            <section class="up-section fl "  th:if="${bankCard.logo !=null}">
                                <span class="up-span"></span>
                                <img class="close-upimg" th:src="@{/uploadeFile/img/a7.png}">
                                <img class="up-img" th:src="*{logo}" width="200px" height="200px">
                                <p class="img-name-p">BANNER.png</p>
                                <input id="taglocation" name="taglocation" value="" type="hidden">
                                <input id="tags" name="tags" value="" type="hidden">
                            </section>
                            <!--</c:if>-->
                            <section class="z_file fl" >
                                <img th:src="@{/uploadeFile/img/a11.png}"  class="add-img">
                                <input type="file" name="file" id="file" class="file" value="" accept="image/jpg,image/jpeg,image/png,image/bmp" multiple />
                            </section>

                        </div>
                    </section>
                    <aside class="mask works-mask">
                        <div class="mask-content">
                            <p class="del-p ">您确定要删除吗？</p>
                            <p class="check-p"><span class="del-com wsdel-ok">确定</span><span class="wsdel-no">取消</span></p>
                        </div>
                    </aside>

                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">银行名称：</label>
                <div class="col-sm-8">
                    <input id="name" name="name" th:field="*{name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">银行代码：</label>
                <div class="col-sm-8">
                    <input id="code" name="code" th:field="*{code}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button type="submit" class="btn btn-primary">提交</button>
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script  th:src="@{/uploadeFile/js/imgUp.js}"></script>
    <script type="text/javascript">
		var prefix = ctx + "beautyflower/bankCard"
		$("#form-bankCard-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-bankCard-edit').serialize());
			}
		});
	</script>
</body>
</html>
